package com.icloud.article.boot.dto;


import com.icloud.common.core.constant.ValidateConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel("点赞参数")
@Data
public class UpvoteDto {

    /**
     * @see com.icloud.common.database.enums.BusinessTypeEnum
     */
    @ApiModelProperty(value = "业务类型,ARTICLE,DISCUSS", required = true)
    @NotEmpty(message = ValidateConstant.NOT_EMPTY)
    private String businessType;

    @ApiModelProperty(value = "业务id,业务类型为ARTICLE时传帖子id,业务类型为DISCUSS时传评论id", required = true)
    @NotNull(message = ValidateConstant.NOT_NULL)
    private Long businessId;

}
